/* ==========================================================================
   Adyasha Newspaper — public site
   ========================================================================== */

:root {
  --brand:        #c8102e;
  --brand-dark:   #9b0c23;
  --brand-soft:   #fdeaed;
  --ink:          #14181f;
  --ink-2:        #3d4654;
  --ink-3:        #6b7688;
  --line:         #e4e8ee;
  --bg:           #ffffff;
  --bg-2:         #f6f8fa;
  --bg-3:         #eef1f5;
  --accent:       #0f766e;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-md:    0 4px 12px rgba(16,24,40,.08);
  --shadow-lg:    0 12px 32px rgba(16,24,40,.12);
  --header-h:     64px;
  --font-or:      'Noto Sans Oriya', 'Nirmala UI', 'Kalinga', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --ink:        #e8ecf2;
  --ink-2:      #b3bccb;
  --ink-3:      #8792a5;
  --line:       #2a3140;
  --bg:         #10141b;
  --bg-2:       #171d26;
  --bg-3:       #1e2531;
  --brand-soft: #2a1519;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,.45);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-or);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* ------------------------------------------------------------- topbar ---- */

.topbar {
  background: var(--ink);
  color: #cfd6e2;
  font-size: 13px;
  padding: 7px 0;
}
[data-theme="dark"] .topbar { background: #070a0f; }

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-date { display: flex; align-items: center; gap: 8px; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar-links a:hover { color: #fff; }

.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: background .18s, transform .18s;
}
.social-row a:hover { background: var(--brand); transform: translateY(-2px); }
.social-row svg { width: 13px; height: 13px; fill: currentColor; }

/* ------------------------------------------------------------ masthead --- */

.masthead {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.masthead .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.masthead-left  { justify-self: start; }
.masthead-right { justify-self: end; }

.brand { text-align: center; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

/* Wide wordmark lockup (~2.07:1). Height-driven so it never distorts;
   the artwork carries its own rounded plate, so no border-radius here. */
.brand-logo {
  height: clamp(52px, 8vw, 78px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}

/* Keeps the name in the DOM for SEO/screen readers when the logo shows it. */
.is-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.brand-name {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--brand);
  line-height: 1.15;
  margin: 0;
}
.brand-tagline {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 2px;
  margin-top: 2px;
}

.ad-slot {
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.ad-header { width: 300px; height: 74px; }
.ad-sidebar { width: 100%; min-height: 250px; margin-bottom: 22px; }

/* ---------------------------------------------------------------- nav ---- */

.mainnav {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-md);
}
.mainnav .container {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-close-item { display: none; } /* mobile slide-in panel only */
.nav-list > li > a {
  display: block;
  padding: 13px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .16s, border-color .16s;
}
.nav-list > li > a:hover,
.nav-list > li > a.is-active {
  background: rgba(0,0,0,.18);
  border-bottom-color: #ffd166;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 12px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .16s;
}
.icon-btn:hover { background: rgba(255,255,255,.28); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* search dropdown */
.search-panel {
  display: none;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.search-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.search-form button {
  padding: 11px 22px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--brand-dark); }

/* ----------------------------------------------------------- breaking ---- */

.breaking {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.breaking-label {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.blink {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffd166;
  animation: blink 1.1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.ticker { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  padding: 9px 0;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.breaking:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-size: 15px; color: var(--ink-2); }
.ticker-track a:hover { color: var(--brand); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- grid ---- */

main { padding: 26px 0 40px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--line);
}
.section-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0;
  position: relative;
  padding-right: 12px;
  padding-left: 12px;
  border-left: 5px solid var(--brand);
}
.section-more {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}
.section-more:hover { text-decoration: underline; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.hero-side { display: grid; gap: 18px; align-content: start; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 16px 18px 18px; }

.badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.badge-float {
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 10px 0 8px;
}
.card-title a:hover { color: var(--brand); }

.hero-main .card-title { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.35; }
.hero-main .card-excerpt { font-size: 16px; }

.card-excerpt {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item svg { width: 13px; height: 13px; fill: currentColor; opacity: .75; }

/* compact side card */
.card-h {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background .16s, border-color .16s;
}
.card-h:hover { background: var(--bg-2); border-color: var(--brand); }
.card-h .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-3);
}
.card-h .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-h h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-h:hover h3 { color: var(--brand); }
.card-h .card-meta { font-size: 12px; }

/* grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.stack  { display: grid; gap: 12px; }

.block { margin-bottom: 38px; }

/* category strip */
.cat-block { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; }

/* ------------------------------------------------------------ sidebar ---- */

.sidebar { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 16px); }

.widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-head {
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 16px;
}
.widget-body { padding: 14px 16px; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rank-list li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; }
.rank-num {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand);
  opacity: .35;
  line-height: 1.2;
}
.rank-list h4 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 3px;
}
.rank-list li:hover h4 { color: var(--brand); }
.rank-list .card-meta { font-size: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .16s;
}
.tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.cat-links { list-style: none; margin: 0; padding: 0; }
.cat-links li + li { border-top: 1px solid var(--line); }
.cat-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
}
.cat-links a:hover { color: var(--brand); }
.count-pill {
  font-size: 12px;
  background: var(--bg-3);
  color: var(--ink-3);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.newsletter-box { text-align: center; }
.newsletter-box p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.newsletter-box input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 9px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
}
.btn-block { width: 100%; }

/* --------------------------------------------------------------- epaper -- */

.epaper-card { text-align: center; }
.epaper-cover {
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 11px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.epaper-cover img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .16s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* -------------------------------------------------------------- article -- */

.article { background: var(--bg); }

.breadcrumb {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.breadcrumb a:hover { color: var(--brand); }

.article-title {
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0 14px;
}
.article-excerpt {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 15px;
  border-left: 4px solid var(--brand);
  margin: 0 0 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 13px 0;
  border-block: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.author-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { color: var(--ink); font-weight: 650; }

.article-figure { margin: 0 0 22px; }
.article-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 9px 3px 0;
  font-style: italic;
}

.article-body { font-size: 17.5px; line-height: 1.95; color: var(--ink); }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-size: 24px; font-weight: 700; margin: 32px 0 14px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 26px 0 12px; }
.article-body ul, .article-body ol { padding-left: 26px; margin: 0 0 20px; }
.article-body li { margin-bottom: 9px; }
.article-body img { border-radius: var(--radius); margin: 18px 0; }
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--bg-2);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  color: var(--ink-2);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: right; }
.article-body th { background: var(--bg-2); font-weight: 700; }

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  margin: 26px 0;
}
.share-row .lbl { font-weight: 650; font-size: 14px; margin-left: 4px; }
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform .16s, opacity .16s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .88; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.sh-fb { background: #1877f2; }
.sh-tw { background: #111; }
.sh-wa { background: #25d366; }
.sh-tg { background: #229ed9; }
.sh-cp { background: var(--ink-3); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }

/* comments */
.comment-list { display: grid; gap: 15px; margin-bottom: 26px; }
.comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 15px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.comment .avatar { width: 42px; height: 42px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.comment-author { font-weight: 700; font-size: 15px; }
.comment-time { font-size: 12.5px; color: var(--ink-3); }
.comment-body { font-size: 15px; color: var(--ink-2); margin: 0; }

.form-grid { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-success { background: #e8f8ef; border-color: #9fdfba; color: #12603a; }
.alert-error   { background: #fdeaed; border-color: #f2aeb9; color: #8f1225; }
.alert-info    { background: #e8f1fd; border-color: #a9c8f5; color: #14457f; }
[data-theme="dark"] .alert-success { background: #0f2a1c; color: #7fd8a5; }
[data-theme="dark"] .alert-error   { background: #2b1116; color: #f0a4b1; }
[data-theme="dark"] .alert-info    { background: #101f33; color: #9dc3f0; }

/* ----------------------------------------------------------- pagination -- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 34px 0 10px;
}
.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  transition: all .16s;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-gap { display: grid; place-items: center; padding: 0 4px; color: var(--ink-3); }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: #b6c0d0;
  margin-top: 46px;
  padding: 44px 0 0;
}
[data-theme="dark"] .site-footer { background: #070a0f; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 34px;
}
.footer-brand {
  font-size: 25px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand img { height: 46px; width: auto; max-width: 100%; flex-shrink: 0; }
.footer-grid p { font-size: 14.5px; line-height: 1.8; margin: 0 0 14px; }
.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 15px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color .16s, padding .16s;
}
.footer-list a:hover { color: #fff; padding-right: 4px; }
.footer-list svg {
  width: 15px;
  height: 15px;
  fill: var(--brand);
  flex-shrink: 0;
  transition: fill .16s, transform .16s;
}
.footer-list a:hover svg { fill: #fff; transform: translateX(-2px); }
/* Category bullets take the category's own colour, set inline. */
.footer-list .dot-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand);
  transition: transform .16s, box-shadow .16s;
}
.footer-list a:hover .dot-icon { transform: scale(1.35); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.contact-line { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; margin-bottom: 11px; }
.contact-line svg { width: 16px; height: 16px; fill: var(--brand); flex-shrink: 0; margin-top: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 17px 0;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ----------------------------------------------------------- utilities --- */

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-3);
}
.empty-state svg { width: 52px; height: 52px; fill: currentColor; opacity: .35; margin-bottom: 14px; }

.to-top {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s;
  z-index: 70;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 19px; height: 19px; fill: currentColor; }

.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ffd166);
  width: 0;
  z-index: 100;
  transition: width .1s linear;
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .cat-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .masthead .container { grid-template-columns: 1fr; text-align: center; }
  .masthead-left, .masthead-right { display: none; }
  .topbar-links .hide-sm { display: none; }

  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: stretch;
    background: var(--brand);
    padding: 18px 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 90;
  }
  .nav-list.is-open { transform: translateX(0); box-shadow: -12px 0 40px rgba(0,0,0,.35); }
  .nav-list > li > a { padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }

  /* Close button pinned to the top of the slide-in panel. */
  .nav-list { padding-top: 0; }
  .nav-close-item {
    display: flex;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    /* Clear any fixed element at the very top of the viewport (e.g. the
       3px read-progress bar) so the button is never partly covered. */
    padding-top: 16px;
    background: var(--brand);
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
  }
  .nav-close svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .nav-close span { white-space: nowrap; }
  .nav-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

  /* Dim the page behind the open menu; tapping it closes the menu. */
  body.nav-open { overflow: hidden; }
  /* The panel lives inside the sticky nav bar. Lift the bar above both the
     backdrop AND the read-progress bar so nothing paints over the panel. */
  body.nav-open .mainnav { z-index: 110; }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0,0,0,.45);
  }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .article-body { font-size: 16.5px; }
  body { font-size: 15px; }
}

@media (max-width: 480px) {
  .card-h { grid-template-columns: 96px 1fr; }
  .breaking-label { font-size: 12.5px; padding: 8px 11px; }
}

@media print {
  .topbar, .mainnav, .breaking, .sidebar, .site-footer,
  .share-row, .to-top, .ad-slot { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Brand switcher + group brand pages
   ========================================================================== */

.brand-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.bs-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #aab4c4;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.bs-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.bs-item.is-active { background: var(--brand); color: #fff; }
.bs-item.is-todo { opacity: .45; cursor: default; }
.bs-ext { font-size: 10px; opacity: .8; }

/* --- brand landing pages --- */

.brand-hero {
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.brand-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.brand-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.brand-hero .eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 8px;
}
.brand-hero h1 {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.25;
}
.brand-hero .lede { font-size: 17px; opacity: .93; margin: 0 0 20px; line-height: 1.75; }
.brand-hero .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.brand-hero .btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 13px;
}
.feature-icon svg { width: 21px; height: 21px; fill: #fff; }
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.feature p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.7; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.stat-box {
  text-align: center;
  padding: 22px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat-box .n { font-size: 30px; font-weight: 800; line-height: 1.15; }
.stat-box .l { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }

/* group index cards */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.brand-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background: var(--bg);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-card .bc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.brand-card .bc-icon svg { width: 25px; height: 25px; fill: #fff; }
.brand-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.brand-card .bc-en { font-size: 13px; color: var(--ink-3); margin-bottom: 9px; }
.brand-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.7; }
.brand-card .bc-go { font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.brand-card.is-todo { opacity: .62; }
.brand-card.is-todo:hover { transform: none; box-shadow: none; }

@media (max-width: 768px) {
  .brand-switch { justify-content: center; width: 100%; }
  .brand-hero { padding: 30px 22px; }
}

/* ==========================================================================
   Mobile touch-target sizing (WCAG 2.5.8: minimum 24x24 CSS px)
   Measured with headless Chrome at 320/360/390px.
   ========================================================================== */

/* Breadcrumb links sat at 53x24 — pad to a comfortable tap height. */
.breadcrumb { gap: 4px 10px; line-height: 2; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 2px;
}

/* Credits "view source" links were 86x17. */
.credit-src {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 0;
}

@media (max-width: 768px) {
  /* Footer went to five columns when the group list was added; the old
     two-column rule left them cramped between 769-1024px. */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  /* Give in-content links room without affecting body copy. */
  .footer-list a,
  .cat-links a,
  .topbar-links a { min-height: 26px; }

  /* Brand switcher chips are the primary group navigation on mobile. */
  .bs-item { padding: 5px 12px; min-height: 26px; }

  /* Hero decoration must never widen the page. */
  .brand-hero::after { width: 200px; height: 200px; right: -70px; bottom: -80px; }

  /* Tag pills and pagination are common mis-taps. */
  .tag { min-height: 26px; display: inline-flex; align-items: center; }
}

@media (max-width: 1024px) {
  /* Between tablet and desktop five columns are too tight. */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Credits page: article-title links were 20px tall at tablet width. */
/* The parent .card-h h3 line-clamps via display:-webkit-box, so an inline-flex
   child gets no height of its own. Opt this row out of clamping and pad the
   link instead, so the title is a comfortable tap target. */
.credit-row h3 {
  display: block;
  line-height: 1.65;
  -webkit-line-clamp: none;
}
.credit-row h3 a {
  display: block;
  min-height: 26px;
  padding: 3px 0;
}

/* ==========================================================================
   Homepage video section
   ========================================================================== */

.video-section {
  background: #0d1117;
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 38px;
  color: #e8ecf2;
}
.video-section .section-head { border-bottom-color: rgba(255,255,255,.14); }
.video-section .section-title { color: #fff; border-left-color: var(--brand); }
.video-section .section-more { color: #ffd166; }

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* --- featured player --- */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}
.video-stage:hover img { transform: scale(1.04); opacity: .85; }
.video-stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 0;
  background: rgba(200,16,46,.94);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  transition: transform .18s, background .18s;
}
.video-stage:hover .play-btn { transform: scale(1.1); background: var(--brand); }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }

.video-caption {
  padding: 14px 2px 0;
}
.video-caption h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
  color: #fff;
}
.video-caption h3 a:hover { color: #ffd166; }
.video-caption .card-meta { color: #97a3b6; }

/* --- playlist --- */
.video-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding-left: 4px;
  scrollbar-width: thin;
}
.video-list::-webkit-scrollbar { width: 5px; }
.video-list::-webkit-scrollbar-thumb { background: #33405a; border-radius: 3px; }

.vitem {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 11px;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  text-align: right;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: background .16s, border-color .16s;
}
.vitem:hover { background: rgba(255,255,255,.07); }
.vitem.is-playing { background: rgba(200,16,46,.16); border-color: rgba(200,16,46,.5); }

.vitem-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.vitem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vitem-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 22px;
  opacity: .9;
  transition: opacity .16s;
}
.vitem:hover .vitem-thumb::after { opacity: 1; }

.vitem h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
  color: #dfe5ee;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vitem:hover h4 { color: #fff; }
.vitem .vmeta { font-size: 12px; color: #8b97aa; }

/* video badge on normal article cards */
.badge-video {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
}
.badge-video svg { width: 11px; height: 11px; fill: currentColor; }

@media (max-width: 900px) {
  .video-layout { grid-template-columns: 1fr; }
  .video-list { max-height: none; grid-auto-flow: row; }
}
@media (max-width: 768px) {
  .video-section { padding: 18px 15px; border-radius: var(--radius); }
  .vitem { grid-template-columns: 104px 1fr; }
  .video-caption h3 { font-size: 17px; }
  .play-btn { width: 56px; height: 56px; }
}
